<template>
    <div id="main" style="height: 220px;">

    </div>
</template>
<script>
import * as echarts from 'echarts';
export default {
    mounted(){
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;

option = {
  xAxis: {
    type: 'category',
    data: ['xx区', 'xx区',  'xx区',  'xx区',  'xx区', 'xx区',  'xx区', 'xx区', 'xx区', 'xx区', 'xx区', ]
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [120, 200, 150, 80, 70, 110, 130,80,20,60,180],
      type: 'bar'
    }
  ]
};
option && myChart.setOption(option);
// 饼状图

  },
}
</script>